package com.luo.entity;

import java.io.Serializable;

public class ImportantResult implements Serializable, Comparable<ImportantResult> {
	private String content;
	private String item;
	private double rate;

	public final String getContent() {
		return content;
	}

	public final ImportantResult setContent(String content) {
		this.content = content;
		return this;
	}

	public final String getItem() {
		return item;
	}

	public final ImportantResult setItem(String item) {
		this.item = item;
		return this;
	}

	public final double getRate() {
		return rate;
	}

	public final ImportantResult setRate(double rate) {
		this.rate = rate;
		return this;
	}

	@Override
	public int compareTo(ImportantResult item) {
		if (rate > item.getRate()) {
			return 1;
		} else if (rate < item.getRate()) {
			return -1;
		} else {
			return 0;
		}
	}

	@Override
	public String toString() {
		return "ImportantResult [content=" + content + ", item=" + item + ", rate=" + rate + "]";
	}

}
